from fastapi import APIRouter
from fastapi.websockets import WebSocket

from app.deps.controller_deps import WebSocketControllerDep

websocket_router = APIRouter()

@websocket_router.websocket("/ws/{token}")
async def websocket_endpoint(websocket: WebSocket, token: str,controller: WebSocketControllerDep):
    await controller.handle_websocket_connection(websocket, token)










